package com.awphone.data;

import com.awphone.data.constant.CompanyConst;
import com.awphone.data.constant.EObjectType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author a_polyakov
 * Date: 03.03.13
 * Time: 22:35
 * Оператор
 */
@Entity
@Table(schema = CompanyConst.SCHEMA_NAME, name = CompanyConst.TABLE_NAME)
public class Company extends AbstractObject {
    /**
     * Наименование
     */
    private String name;

    {
        setObjectType(EObjectType.COMPANY);
    }

    public Company() {
    }

    @Column(name = CompanyConst.S_NAME, nullable = false)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
